package com.crm.service.system.department.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.crm.model.system.department.dtos.DepartmentPageDto;
import com.crm.model.system.department.pojos.Department;
import com.crm.model.system.department.vo.DepartmentNameVo;
import com.crm.model.system.department.vo.DepartmentPageVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    List<DepartmentPageVo> pageList(DepartmentPageDto departmentPageDto);

    //    查询名称列表
    List<DepartmentNameVo> nameList();
}
